<template>
  <div>
    i am a fill
    <el-button type="primary" @click="clickEvent()">{{ '提交' }}</el-button>
  </div>
</template>
<script>
// import debounce from 'lodash/debounce'
export default {
  data () {
    return {
      routeRarams: {},
      loading: false,
      visible: false
    }
  },
  computed: {
    dataRule () {
      return {}
    }
  },
  created () {
    // 从路由读取参数
    this.routeRarams = this.$route.params
  },
  methods: {
    clickEvent () {
      this.$http.post('/udf/udfFillingLog/updateStatusById', { id: this.routeRarams.logId, status: 1 })
        .then(({ data: res }) => {
          if (res.code !== 0) {
            return
          }
          this.$message.success(res.msg)
        })
    }
  }
}
</script>
